//logs.js
var util = require('../../utils/util.js')
Page({
  data: {
    navigator: {
      nav_one: ['/image/nav1.png', ''],
      nav_two: ['/image/nav5.png', ''],
      nav_three: ['/image/nav4.png', 'nav1'],
      nav_type: '/pages/battle/battle'
    },
  },
  
  onShow:function(){
    var battle_info = wx.getStorageSync('battle_info');
    var nav_type = battle_info.battle_type == 2 ? '/pages/snookerbattle/snookerbattle' : '/pages/battle/battle';
    this.setData({ navigator: { nav_type: nav_type } });
  },
  navigateBack:function(){
     wx.navigateBack(1);
  }
})
